'use strict';
module.exports = app => {
  // router
  app.validator.addRule('phone', (rule, value) => {
    if (!/^1[3-9]\d{9}$/.test(value)) {
      return '手机输入有误！';
    }
  });
}
;
